curl code update