implemented YamlBatchFactory