stability improvements. switched serialization format to pickle, protocol=2.