moved initDefaultCommand