fixed reading .dblog and .log files