[WIP] fix case statement for :extensions