a few cleanups for the new dmoz code.