common libraries for server and client