clean up logic for local list of packages