modified add client (not complete)