fixed the pickle parsing