replacing text data file with yaml data file