add - parameter state machine codec implementation and unit test