factor out celery