add global setting and model definition