fixed directive and added agent files