Improving and structuring workflow servicesapi