add distance threshold
log progress