add global functions and yii framework
add config class