add on_all and on_each for handling files individually or as a group