update config loading way