webserver - limit number of messages to prevent phone freeze