Chemical dissection of microbes and immunity for new medicines