improved ni parser functions