update to check for session