moved model init into models.cpp