added docs for pickling