add config file, scripts to run master/slave