simplify key verification