added hooks for filtering stuff