added optionnal logs to the client