allow specifying server to connect on the backend api connect function.