environment update now does not allocate/deallocate memory