fix log file name; fix output dir naming