added switch and stop to app.py