env class, add_global