improved model merging and implemented cross-module relationships