be more tolerant with final slash