remove unused variable
add option to set freq/log/stats update rate