modularized making get_pickles