move server code to the root directory