adding new code to start celery tasks correctly