added log and removed waitForAcktoFin