add directive and scope file