v0.1.2: add the possibility to override the transition function