check if pickle file exists first