hmm, maybe have a function that gets the dir content, and merges the resulting array into $files