add model and api routes