removing pattern engine dependency