updated machine.sh