make session more configurable