finished init datahook class