refactored code to account for new changes to the file handler (now uses a path collection and can detect absolute paths)