add option and config parsing to import script