trying to make the class transformer not break in dev env (when obfed), also generally hardening the transformer to avoid crashes