** initial support for themes (better put this in now, rather than having to do a major re-write later)