worker/manager refactor to use malory - wip