start of client/server state machines