add behavior for setting max json response