added configuration file to select which threads to run