call hooks with resource object scope