trying custom rack middleware