refactor parts of the server profile system