scan the code to access files