implement loadConfig method