logic hooks for opportunities insertion