for #458 set/get_diff with version