support multiple experiments; eliminate memory leaks