added automatic pickling