change the way to spawn executor.