add basic cofnig support