minor refactorings to the wiki commands