add environment variable for spawn options