handling of files listing correct