minor changes to add hooks