added code to react on nacks.