Make hooks work with prepared requests