added first pass at document root management .pp