added some file reading finctionality