check for session mode