bug fix part 2 - correct environment