added bindEnvironment to get mongo working
merge