* moved common model code to models.__init__