initial implementation of finite state machine for log file parsing.  yeah I'm getting serious now.