support old pickle files