add removeslash middleware back