replace fic-ext-mode by manual code