client: add csapi support functions