Split server and client