terminal encoding error characters replaced
proxy code added