add lowercase logic to extension match