code for making it easy to run experiments