client sequence stuff + elaboration of server implementation.