move POT stuff to POTWorkflow file