changed setTimeout to setInterval, make ack the default