add missing loop ffi file