separated out to run celery script