removed trailing slash from path