Added support for custom resource roots