improvements to content handling and an example of less noobish code in jptsmeta