add back in path2key fix incrementing depth on prefix