added pickle to serialize dict