docs on hook