avoid another NPE where getClass.getClassLoader is null