initial statemachine