added ability to run machines from file