updated nnGraph pipeline script