also strip default path from document.path