apply filters before and after the action