further refinements to server.coffee