pass app reference to middleware filter