replace geom.dat and global.dat with json equivalents