fix dx and import_cmd problems