small tool to receive statistics and store them into files