moved commandHistory to animal