add write hashmaps to model file