add comment and add select best server functions
change how to select best server