added section howto use hooks