attempted fixes for genBinPatches