reading and processing messages done