cleanup and fixed set-type for Ack