complete hook docs
insert hook calls
fix tests