small stability fixes
add log dir