update to new ccall convention