split client and server