Change method of loading config