fix prep scripts