add ability to pass custom environment variables as spawn options