rework building models. allow to refer to models from previous application
remove unused code
remove unused code (WIP)
simplify model builder