updates to how the merged model is built