update APIs and models