add eqcgen for porting