simplify key processing