fix: return properly formatted metadata for analysis