updated celery templates and definition to handle vector and emin