improve log parser