refactor the filter parsing
make the typename and app parsers a bit more regular