preparing a workflow