sanitize import script (somewhat)