2013 bot rewrite