add hook for docs