add directive and directive scope