use config.factory when .yaml is not present