server script for saving stats to file, and enhanced properties to be saved