added support for nested root urls on models