log, out dir bugfix