added printf
added client iterator