build architecture for client.