more extremely hacky changes for a mediawiki integration