changed server to be a module