preprocess script for adpd sample