refactor for server deployment