splited config method into getConfig and setConfig