various environment fixes

with the goal of fixing go