make hooks more sane