try to output proper yaml instead of looping through object