process_messages update