implemented bot and small changes