fixed some env things