moved log parser to separate class