add before filter documentation