add exception of reading file