fix the script, now should directly run on both
machines