most of core C API complete