move ack_done to decoder initialize