define client capabilities structure, fix minor typos