integration of server / client code