initial import of core C library