updated debt contract script