optfuncs_native