utility function to open all files in current directory
slimming down