debugging code for mime-type