added key hooks