added config file & choosing server