ensure ABI compatibility