updated functions to work with new wiki class