prehooks are now added, still need to integrate