added an api function to register filters