make niceness and output dir configurable