 						logger.err stdout:stdout, "smoke test: does not have csrf token"
 						return done("smoke test: does not have csrf token")
 					csrf = csrfMatches[1]
-
+					logger.log "smoke test: converting cookie file 1"
 					convertCookieFile (err) ->
 						return done(err) if err?
+						logger.log "smoke test: hitting /register with csrf"
 						command = """
 							curl -c #{cookeFilePath} -H "Content-Type: application/json" -H "X-Forwarded-Proto: https" -d '{"_csrf":"#{csrf}", "email":"#{Settings.smokeTest.user}", "password":"#{Settings.smokeTest.password}"}' #{buildUrl('register')}
 						"""
 						child.exec command, (err) ->
 							return done(err) if err?
+							logger.log "smoke test: finishing setup"
 							convertCookieFile done
 
-	after (done)-> 
+	after (done)->
+		logger.log "smoke test: cleaning up"
 		command =  """
 			curl -H  "X-Forwarded-Proto: https" -c #{cookeFilePath} #{buildUrl('logout')}
 		"""

describe "Opening", ->

	before (done) ->
		require("../../../app/js/Features/Security/LoginRateLimiter.js").recordSuccessfulLogin Settings.smokeTest.user, ->
			require("../../../app/js/infrastructure/RateLimiter.js").clearRateLimit "open-project", "#{Settings.smokeTest.projectId}:#{Settings.smokeTest.userId}", ->
				command =  """
					curl -H  "X-Forwarded-Proto: https" -c #{cookeFilePath} #{buildUrl('register')}
				"""

			fs.unlink cookeFilePath, done

	it "a project", (done) ->
		logger.log "smoke test: Checking can load a project"
		@timeout(4000)
		command =  """
			curl -H "X-Forwarded-Proto: https" -v #{buildUrl("project/#{Settings.smokeTest.projectId}")}
