modified hooks to accepts an array of paths and process them