fix get&put fsm, not done yet