start of themeing engine