this beforeFilter was lost somehow...