better logging for getnrn script