use ffi internals for pollitems array building