ModelDumper: structure code

work in progress