added server lookup code.