do_import function compartmetalized