initial modular support for sessions