added JSEnv and asset_sync