fix missing export in set_env