change the way the root models are specified, to improve testability