merged ModelThread with Model