refactor and document list_all_packages