new verion with better ack support