prepare for advanced hooks