add directive and filter