updated version of d2dsearch