whole bunch of stuff related to finding packages