add missing import and export to hooks-record patch