added nonexistant class catching