updating api and models