switched to built-in methods for directory browsing