fix file takeover and data read