processing messages - second stab