some sort of content negotiation
removed pointless code