support reading from- and to-state during on_transition callback #100