addapted log dir