reset handler fixed, pre wdata phase added