small changes to parse log