under working, add csv to translate state machine table, not work yet.