fixed env stuff again