updated stanford script to run without user intervention