change child_process.exec to child_process.spawn mode