finished basic output handler for client.