added function of reading from localfile