split server and client (public).