session routine