moved workflow code to dispel.py