refactor to use the LOC writers; unit test the BagInfo subclass