adding new genearte_yaml method to make creating them easier