refactors createSession fixes #14 fixes #15 fixes #16