some refactoring of msg_poll/bots ..