new build and environ code