add beforeQuery hook