move Server to server.rs