added pretty print of hooks