moved methods to SessionHelpers module