initial version of log-parsing script