add filter callback

Change-Id: I1d131d09bd7370c30a4ae94927ce3247bde61175