controller code and start code separated from server code