a collection of some useful hooks