new/better gap fill code for buildindex; stilstill need to smooth local mismatch+gap errors