need help with file and directory lookup and copy