add debug/statistics option