refactor some hardcoded values out to the server