avoid exceptions when using klass.getSimpleName