initial version of script with a working default theme