made it possible to select log dir