extract server to module
extract logger and package from server