nse_check_globals cleanup