preprocess scripts