writing translation to file and a bunch more