struct fsm_t add ret member