output dir configurable in UI