updated add node and the enc script to query only the master