added hooks for 4.2