wip: start implementing multi-root support