add before and after filters