add nbest support to nodeerf