WIP – A lightweight path-based hierarchical state machine