client is now local variable