max_messages to 1 for debug