added BOT_END, rearranged code, nicer verbose output