set environment appropriately