Improvements to the Controller: better access to pathroot