added ability to choose log dir via settings