implementing cffi-type in accessors