directory listing now works properly