preprocessing paths