read model from file