add getCapability() method