modified app.sh