split the import phase to a yaml stream