reconstruct script