added statistics logger