added ability to filter out rules and entries during parsing