update models and generate_models to make charts compatibility