implemented YamlBatch