fixed pickling stuff