updated config loader