some work on architecture of bot, in preparation for new stuff ontop