use child_process.spawn instead of child_process.exec