optimize file listing