fixing a bug, working on getting the env to be in the worker