set content-type automatically using mime package