added filter and directives.