added options to save stats