refactors server