sync the very hacky stats command back in from production