getCap written, not tested