added intercept call code generation