refactoring multimodel code out of StaticData; locking.