more safe YAML writing