Add some comments
add server exists check