set the env in a better way