rename fifo -> stack
housekeeping
Implement message parsing as a finite state machine