updates to make env work