add defualt port value for pre_config