changed handling of METADATA.json.new