add argument to list_pcore_datasets to optionally return list of datasets, rather than merely printing them