add list-jobs functionality