* modify spawnProcess func