added setup/release code to client.
added server resolve code.