guard against empty locs