Adding a local env setting
Fixed incorrect reference returned