updates to handle multiple slashes in path