adds session object, fixes #11