added file reading  feature