split server and client