change config loading method.