added code generation of local agent wires