added the do-nsupdate scripts, working on a cleanup of the code from Karl