update run_or_pickle