added option for msg_perf_thresholds to return string instead of appending to $msg