modularizing server.