table: add hooks