add preprocess script