updated mgi download script