updated model reading procedure