misc celery code