added utility to print nbests