write yaml dump to file