add support for different mediaTypes