update index
preserve version history of scripts