stats function by parsing icingastats