implement loadConfig method and use it
implement setConfig method