removed old middleware