changed so that rev 0 (unspecified) can always overwrite