change of prehook API