[REF] port to v8 with old api