updated mig export to use xml and mig import supports libraries and preferences