adding method to read file path