refactor bot.wget