log parser, not fully implemented
log parser