provide magic reflection support for hooks