replaced exec-sync to execSync