change config model. Fix #3