refactor parameters into config dictionary
convert regex filter to plugin