extract metadata instead of just traits