avoid trailing slash