configure log dir too