preprocess binary