added capability to add metadata to table hooks