refactor(server) config