more on api and model