added useDirectives, useFilters
simplified registration of directives