updated app_worker.py