middleware to before filter