James C - environment threading