updating pickling and cursor