adding support for sessions