corelib