added automate.sh