add option to configure stats output, fixes #8