move server specific code