new module to handle sessions