complete rewrite of nrpe class