add filtering for custom parameters.