moved models here, since they are needed in both the http server and multi server