env must be global