move exports and set exports for cocos

Signed-off-by: Andre Dublin <81dublin@gmail.com>