Add fsm support and allow not only print but fetch real structure