Add debug code to config loading