fixed mime types, revised template