change the behaviour how the spawn command is called