default middleware not required and fix property assignment mangle