register preprocess