removed code related to metadata file logic