refactor server install