new merge_metadata() method for File