reading metadata from original file