updated some deprecated cocos stuff