get_offsets now uses partitions, as well