sending to client works