sort debugging
tidy up legacy single root node model