this still depends too much on our code.
factor this out to server.js.