somewhat haphazardly add metadata