refactor the server config manager