retrieved document from pearserver
added command structure for client