pass options to spawn