dummy
resolve some bugs for c-linkage