added better error handling to .readFileAbsolute