added looping capability to files so we can leverage globbing