abstracted stats saving into stats service