fixed bugs, added support for bots