added hooks to OnBase