clean-up old code
on way to simplify again, remove the themesdir attribute