trailing slash mess fixed