use deflator middleware and try ruby 2