ticket:2 middleware issue#2