cleanup document path