work in progress, save
fixed unit tests and clientsession frame handling