support output dir #19