merge into a single method that takes a type like the wiki stuff.