create path index during linking