- tweaked the main library to isolate pickle for serialization/deserialization