now loops through scripts in a directory