added portal config_dir