sync to js-sdk