better naming of before filter