minor bug fix in non existent file and class checking