set up classes for tranforming the reponse