using spawnCommand instead of system