used mimetype instead of header