small changes, corrected bug on the log path