initial theme support and add some test code for search