moved retranslator to separate file