fix log file again and minor dependency