created session wrapper