minor refactorings of adminMod