improving session operations