change to guessContentType -- function shall return mime type or null