'user not found' fix
session end check
little fixes
term fix