update corelib