add an output directory option. set the default output directory to be in the same location as the log