moved serverdatahandler into its own file