quick and dirty patch for bin2dat