resource preprocessing toolbox