slave workflow logic