hardcode type into the mimetype specific functions