do not log data when the function failed
ensure block consistency