rewrite textwolf filter to use old interface and cleanup