clean up theme engine