Split client and server