resolve mimetype