switched app.listen to server.listen