fixed some errors in translationd and removed unused code