add tanslate_tool, some cleanup