fix import and export to yaml