implementation for list_files
also read, but only the filename read is working so far