fixed mime_open breakage