processing messages - first stab