added a script version of bunch for portability