able to retrieve files with scan dir