ugly merged with plandem/simpleWorkflow