and remove the trailing slash