prep inbound for statemachine