changes for new API of libcapi20 (version 3.9)