only missing last life cycle state machine (to be done by nicolai)