added connect server support to server task