separate config from run