thread safe added to YAML