mutt: add genericity to scripts