needs log dir