properly quote tags
really hacky reflection implementation to convert stats => struct