changed order for compression middleware