new short path algo with file search