added env to spawn actually