updated generate_model command