use the path repair API