add references to directive and service.