Deal config
Fixed many problems