some minor changes to mime-type