work with empty middleware list