add debug mode to client file transfer