move method out of bot