working version of the SRGD import/export