list handling and message handling