Fixed a lot of crash causes, added some error msg

also started the scalability side.
Renamed diagnostic -> bot