add debug to client