fix blank hostname, print 'NA' instead