''with-policy'' and ''with-failure-handling'' are now equipped with hooks