tested logging, more state machine work and testing