simplify interception code injection with func_code attribute