client w/while loop