added logging  to translator.