don't store the statemachine in storage since it has reference loops