modified rsynccopy.java to communicate with NN