session stuff, docs and other things