removed not presented middleware
added generating models by definition from file