Merge pull request #1 from pigay/master

Improve session initialization
v0r2