add an option for overriding default media type in queries