updated to a working version of session handling, however the tests have all gone to crap [ci skip]