clean up pickling code