fixed up tasks.py to follow the new architecture