added some stats refreshing logic
obsolete code removed