Copied from the existing server.coffee (see above)