dealt with non-existence files. Nicer error message.