first pass as implementing file format suggested by Jen Hammock