inconsistent naming. look at isSweep and log_key;