integrating preproc into standard loader