a frustrating morning which ended with some progess.
pickle is a finickity library - need to close file handles and so on