error throwing on unknown class