switch from app.listen to server.listen