added preprocess script