gut and replace generated theme