improve gemset_import to avoid errors