recovered file was messed up this is attempt to reconstruct it