removed obsolete session check