make session configurable