suspect next unless syntax causing issues