clean up. extract LDAConfig