refactored to use config files -- though ugly bc of eval