add session name encoding
correct tests
update documentation