issue #432: added option to turn off statistics gathering