cleanup yaml tree function