make log parser more flexible