making number of sessions configurable