add cocos library