cleanup parseBez and CPatch