added ability to connect to a custom server