maybe should check the class of rack.input?