turned Josh's machine's history into a script