now works with all files in working directory