removed unnecessary qualification of Closeable
mime-types checked