updated config loading