ticket:2 middleware migrate auto#2