adding debug to mock client