session management working now