total rewrite of bot firmware