conversion script for data hierarchy from v2 to v3