added printouts on client side