this version attempts to hack more directly into the whole theming stuff, rather than build on top of it like the previous one.