state-mashines module init