first step refactoring deploy server