fixed up mime-type guessing, file display, etc.