Moving lti higher up inthe middleware chain