query mime type if not given and don't add 1 on offset