added basic stats and basic FSM