working version of file listing